home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir27 / grphca22.zip / EXAMPLES.ZIP / ELEC2.PLT < prev    next >
Text File  |  1993-02-03  |  828b  |  49 lines

  1. [ elec2.plt
  2.  
  3. # Electronics demo 2
  4. #
  5.  
  6. paper size 11 by 8.5
  7. format y 2
  8. font 3
  9.  
  10. # Junction Field Effect Transistor (JFET) Mutual Characteristic
  11. # drain current above pinch off
  12.  
  13. Ida(Vd)=Ido*(1-Vg/Vp)**2
  14.  
  15. # drain current below pinch off
  16.  
  17. Idb(Vd)=Ido*(2*Vd*(Vg-Vp)-Vd*Vd)/(Vp*Vp)
  18.  
  19. # drain current
  20.  
  21. Id(Vd)= (Vd>Vg-Vp) ? Ida(Vd) : Idb(Vd)
  22.  
  23. # drain current at zero gate voltage
  24.  
  25. Ido = 2.5
  26.  
  27. # pinch off voltage
  28.  
  29. Vp = -1.25
  30.  
  31. # gate voltage
  32.  
  33. Vg = 0
  34. dummy Vd
  35.  
  36. title "JFET Mutual Characteristic"
  37. map x 0 4 y 0 5
  38. draw x y
  39. xlabel "Drain voltage Vd (V)"
  40. ylabel "Drain current Id (mA)"
  41.  
  42. label "-0.5 Vp"     at 4.5, 2.75
  43. label "-0.25 Vp"    at 4.5, 3.5
  44. label "0"           at 4.5, 4.5
  45. label "Vg = 0.5 Vp" at 4.5, 6
  46.  
  47. color lred
  48.  
  49. plot Vg=0.5*Vp,Id(Vd),Vg=0.25*Vp,Id(Vd),Vg=0,Id(Vd),Vg=-0.25*Vp,Id(Vd)